package com.spring.future.modules.sys.service;

import com.spring.future.modules.sys.domain.Account;
import com.spring.future.modules.sys.mapper.AccountMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by admin on 2017/1/14.
 */
@Service
public class AccountService {

    @Autowired
    private AccountMapper accountMapper;

    public Account findByLoginName (String LoginName){
        return accountMapper.findByLoginName(LoginName);
    }

    public Account findOne(String id){
        return accountMapper.findOne(id);
    }

    public List<Account> findAll(){
        return accountMapper.findAll();
    }

}
